package system.model.vo;

import com.google.common.collect.Lists;
import common.model.po.SysAuthority;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author 米泽鹏
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AuthorityTreeNodeVo extends SysAuthority {

	/**
	 * 上级节点，用于后端数据处理，前端不需要
	 */
	@EqualsAndHashCode.Exclude
	private transient AuthorityTreeNodeVo parent;

	@EqualsAndHashCode.Exclude
	private List<AuthorityTreeNodeVo> children = Lists.newArrayList();

}
